import java.util.Random;

public class RandomScore {
    private final TennisGame tennisGame;

    public RandomScore(TennisGame tennisGame) {
        this.tennisGame = tennisGame;

    }

    public void score() {
        java.util.Random generator = new java.util.Random();
        if (generator.nextInt() % 2 == 0) {
            tennisGame.secondPlayerScores();
        } else tennisGame.firstPlayerScores();
    }
}